<?php 
	require 'header.php';
?>
	<body >
	<?php require 'head.php';?>
	<?php require 'sidebar.php';?>
		<section>
			<div class="pbox">
				<div class="box-head">
					<div class="pull-left">
						<?php 
							$week= array('日','一','二','三','四','五','六');
							echo date('Y年m月d日').'，星期'.$week[date('w')];
						?>。
					</div>
					<div class="pull-left">
						<span class="text-color-red"></span>
						<span class="text-color-gray">[ <?php echo($u['subcompanyname']);?> - <?php echo($u['departmentname']);?> - <?php echo($u['positionname']);?> ]</span>
					</div>
					<div class="pull-left" style="padding-left:50px;">
						您的积分：<span class="text-color-red">230</span>，全公司排名：<span class="text-color-red">23</span>。 [ <a href="" class="text-color-blue">查看成就榜</a> ]
					</div>
					<div class="pull-left" style="padding-left:50px;">
						当前至上基金总额：<span class="text-color-red">2300</span> 元，您贡献了：<span class="text-color-red">230</span> 元。
						[ <a href="" class="text-color-blue">查看</a> ]
					</div>
					<div class="pull-right">
						公告：<a href="" class="text-color-red"> 2.3-2.10卫生打扫人员安排</a>
						<span class="text-color-gray">2017.1.12</span>
					</div>	
				</div>
				<div class="box-body">
					<div class="pull-left" style="width:85%;">
						<div class="indexbox">
							<div class="indexbox-head">当前状态</div>
							<div class="indexbox-body">
								<div class="ib-scbox text-center">
									<i class="iconfont icon-jizhao text-color-red" style="position: absolute;left:1px;top:-4px;font-size:32px;"></i>
									<span class="text-color-orange font-size-28 ib-scbox-num" style="animation-name: animation1;animation-duration: 0.4s;animation-iteration-count: infinite;animation-direction: alternate;">80</span><br />
									<span class="text-color-red font-size-12">今日未执行事务合同</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-blue font-size-28 ib-scbox-num">32</span><br />
									<span class="text-color-gray font-size-12">未派单新合同</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-green font-size-28 ib-scbox-num">34</span><br />
									<span class="text-color-gray font-size-12">未处理商机</span>
								</div>
								
								<div class="ib-scbox text-center">
									<span class="text-color-qblue font-size-28 ib-scbox-num">56</span><br />
									<span class="text-color-gray font-size-12">未处理投诉</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-purered font-size-28 ib-scbox-num">34</span><br />
									<span class="text-color-gray font-size-12">未处理问答</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-red font-size-26 ib-scbox-num">320,000</span><br />
									<span class="text-color-red font-size-12">超期合同总金额</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-qblue font-size-26 ib-scbox-num">20,000</span><br />
									<span class="text-color-gray font-size-12">总联系人</span>
								</div>
								<div class="ib-scbox text-center">
									<span class="text-color-pure font-size-26 ib-scbox-num">19,000</span><br />
									<span class="text-color-gray font-size-12">总企业数</span>
								</div>
								
								<div class="clearfix"></div>
							</div>
						</div>
						<div class="indexbox">
							<div class="indexbox-head">线性指标</div>
							<div class="indexbox-body">
								<div style="padding:5px;height:190px;width:calc(100% - 15px);"><canvas id="c1" data-type="Line"></canvas></div>
							</div>
						</div>
						<div class="indexbox">
							<div class="indexbox-head">即时消息</div>
							<div class="indexbox-body">
								<dl class="msglist">
									<dd>
										<div class="m-u-avatar"></div>
										<div class="m-msg">
											周敏@我：新收到的文字消息，内容不多。
											<div class="font-size-12 text-color-gray">01-12 19:00:03</div>
										</div>
									</dd>
									<dd>
										<div class="m-u-avatar"></div>
										<div class="m-msg">
											周敏@我：新收到的文字消息，内容不多。
											<div class="font-size-12 text-color-gray">01-12 19:00:03</div>
										</div>
									</dd>
									<dd class="mine">
										<div class="m-u-avatar"></div>
										<div class="m-msg">
											我@周敏：新收到的文字消息，内容不多。
											<div class="font-size-12 text-color-gray">01-12 19:00:03</div>
										</div>
									</dd>
								</dl>
							</div>
						</div>
						<div class="indexbox">
							<div class="indexbox-head">反馈投诉</div>
							<div class="indexbox-body">
								<span class='send'>发送</span>
							</div>
						</div>
						<div class="clearfix"></div>
						<div class="indexbox" style="width:100%;">
							<div class="indexbox-head">待执行合同</div>
							<div class="indexbox-body waitrun">
								
							</div>
						</div>
					</div>
					<div class="pull-right" style="width:15%;">
						<div class="indexbox-head">我的客户</div>
						<div class="mycustoms">
							<ul>
								<li>
									<span class="pull-right btn btn-mini btn-red">短信</span>
									<span class="font-size-14">周敏</span> <span class="font-size-12 text-color-gray">至上会计</span>
									<br />
									<span class="font-size-12 text-color-red">M.18996700000</span>
								</li>
								<li>
									<span class="pull-right btn btn-mini btn-red">短信</span>
									<span class="font-size-14">周敏</span> <span class="font-size-12 text-color-gray">至上会计</span>
									<br />
									<span class="font-size-12 text-color-red">M.18996700000</span>
								</li>
							</ul>
						</div>
					</div>
					<div class="clearfix"></div>
					
				</div>
			</div>
		</section>
		
		<pop>
			<div id="msg" class="popbox hide">
				<div class="text-center" style="padding:100px 0;line-height:200%;">
					<i class="icon icon-96 icon-warnning"></i>
					<br />
					<span id="warnMsg"></span>
				</div>
			</div>
		</pop>
		<?php require 'js.php';?>
		<script type="text/javascript" src="<?php echo($settings['renderer']['home_path'].$settings['renderer']['template_path']);?>dist/Chart.js/Chart.js"></script>
		<script type="text/javascript">
			var data = {
			    labels: [2016.12,2017.1,2017.2,2017.3,2017.4,2017.5,2017.6,2017.7,2017.8,2017.9],
			    datasets: [{
			    	label: "月签单(份)",
			        borderWidth: 2,
			        borderColor:"rgba(255,0,0,0.5)",
			        backgroundColor:"rgba(255,0,0,0.02)",
			        data:[2,26,25,32,34,35,45,34,45,62]
			    },{
			    	label: "月收款(万)",
			        borderWidth: 2,
			        borderColor:"rgba(255,132,0,0.5)",
			        backgroundColor:"rgba(255,132,0,0.02)",
			        data:[22,36,24,30,44,65,45,48,41,52]
			    },{
			    	label: "月成本(万)",
			        borderWidth: 2,
			        borderColor:"rgba(0,160,240,0.5)",
			        backgroundColor:"rgba(0,160,240,0.02)",
			        data:[12,39,34,35,40,61,48,38,42,56]
			    }]
			};
			var c1 = new Chart($("#c1"), {
			    type: 'line',
			    data: data,
			    options: {
			    	responsive: true,
			    	//onResize: ,
			    }
			});
		</script>
		<script type="text/javascript">
			//$(document).ready(function(){
				$('.mycustoms').height($(window).height()-135);
				$('.waitrun').height($(window).height()-597);
			//});
		</script>
		<script type="text/javascript">

				$('.send').click(function(){
					sengmsg('常刚',<?php echo($_COOKIE['staffID']);?>,'staff',75,'staff','msg','消息内容没有写','2017-2-22 12:00:00','新消息');
				});
			
		</script>
	</body>
</html>
